/* const {
	QuillDeltaToHtmlConverter,
	QuillDeltaToJSONConverter
} = */
require('/js_sdk/quill-delta-converter/index.js')

//const converter = new QuillDeltaToHtmlConverter(delta.ops,
//{ inlineStyle: true })
//const html = converter.convert()
/* const json = QuillDeltaToJSONConverter.convert(delta)
const delta = QuillDeltaToJSONConverter.convert(json)
const delta = QuillDeltaToJSONConverter.convert(html)
const json = QuillDeltaToHtmlConverter.convert(delta, { inlineStyle: true }).json()
const html = QuillDeltaToHtmlConverter.convert(json, { inlineStyle: true }).html()
const delta = QuillDeltaToJSONConverter.convert(json, { inlineStyle: true }).delta()
 */
function getRenderableArticleContent(rawArticleContent) {
	//const quillDeltaConverter = new QuillDeltaToJSONConverter(rawArticleContent.ops)
	//return quillDeltaConverter.convert()
	//const quillDeltaConverter = new QuillDeltaToHtmlConverter(rawArticleContent.ops)
	//return quillDeltaConverter.convert()
}

//console.log('QuillDeltaToHtmlConverter',QuillDeltaToHtmlConverter)
// 安全require
 function safeRequire(module) {
	try {
		return require(module)
	} catch (e) {
		if (e.code === 'MODULE_NOT_FOUND') {
			throw new Error(`${module} 模块不存在`)
		}
	}
} 

export { getRenderableArticleContent }